package org.zxyj.web.shiro.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
import org.zxyj.core.web.controller.BaseController;

/**
 * @author zhaoyong
 * @version 2016年2月29日
 */
@Controller
public class LoginController extends BaseController {

	@RequestMapping("/login")
	public ModelAndView login(HttpServletRequest request, HttpServletResponse response, ModelAndView mv) {
		mv.setViewName(Views.LOGIN_VIEW);
		return mv;
	}

	@RequestMapping("/login/exec")
	public String doLogin(HttpServletRequest request, HttpServletResponse response, ModelAndView view) {
		return "/login";
	}

	class Views {

		public static final String LOGIN_VIEW = "/login";

	}

}